package com.castle.fortress.admin.cms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.castle.fortress.admin.core.entity.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * cms内容管理表 实体类
 *
 * @author castle
 * @since 2022-03-10
 */
@Data
@TableName("cms_article")
@EqualsAndHashCode(callSuper = true)
public class CmsArticleEntity extends BaseEntity  {
	private static final long serialVersionUID = 1L;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty("主键id")
	@TableId(
					value = "id",
					type = IdType.AUTO
	)
	private Long id;
	/**
	 * 标题
	*/
	private String title;
	/**
	 * 作者
	*/
	private String author;
	/**
	 * 来源
	*/
	private String source;
	/**
	 * 内容
	*/
	private String contents;
	/**
	 * 摘要
	*/
	private String info;
	/**
	 * 关键字
	*/
	private String keywords;
	/**
	 * 缩略图
	*/
	private String picname;
	/**
	 * 发布人
	*/
	private String publisher;
	/**
	 * 发布时间
	*/
	private Date pubdate;
	/**
	 * 访问地址
	*/
	private String url;
	/**
	 * 浏览次数
	*/
	private Integer click;
	/**
	 * 权重排序
	*/
	private Integer sort;
	/**
	 * 审核人
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	private Long auditer;
	/**
	 * 审核时间
	*/
	private Date auditdate;
	/**
	 * 审核意见
	*/
	private String auditop;
	/**
	 * 栏目
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	private Long channelId;
	@TableField(exist = false)
	/**
	* 关联的树形名称
	*/
	private String channelIdName;
	/**
	 * 是否审核
	 */
	@TableField(exist = false)
	private Boolean auditflag;
	@TableField(exist = false)
	private String queryTags;
	@TableField(exist = false)
	private Date pubdateStart;
	@TableField(exist = false)
	private Date pubdateEnd;

}
